/*package com.wooophone.mpyeah.test;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;

import com.wooophone.mpyeah.biz.BrandCategoryBiz;
import com.wooophone.mpyeah.biz.RealStoreBiz;
import com.wooophone.mpyeah.biz.exception.CannotDeleteException;
import com.wooophone.mpyeah.entity.BrandCategory;
import com.wooophone.mpyeah.entity.RealStore;

import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;

@ContextConfiguration(locations = { "/spring/applicationContext*.xml" })
public class RealStoreBizTestCase extends AbstractJUnit4SpringContextTests {
	@Autowired
	RealStoreBiz realStoreBiz;
	
	@Test public void test() throws CannotDeleteException{
		System.out.println(realStoreBiz);
		
		RealStore realStore=new RealStore();
		realStore.setName("阿卡家朝阳大悦城店");
		realStore.setDescription("阿卡家朝阳大悦城店");
		realStore.setCreator("MingliC");
		realStore.setEditor("MingliC_Edit");
		realStore.setMore("更多信息");
		realStore.setIndoorSceneImg("http://www.sxdn.com.cn/company/12611/upload/20100810145831.JPG");
		realStore.setShopFrontImg("http://www.sxdn.com.cn/company/12611/upload/20100810145831.JPG");
		realStore.setStatus(1);
		
		realStoreBiz.save(realStore);
		
		System.out.println("保存成功："+realStore.getId());
		
		int deleteCount = realStoreBiz.delete(realStore.getId());
		
		System.out.println("成功删除："+deleteCount+"条！");

	}
}
*/